#pragma once
#include <QDialog>
#include <opencv2/opencv.hpp>
#include "HalconCpp.h"
using namespace HalconCpp;


class Calibration_NinePoint;
class QGView;
class CalibrationDlg :
    public QDialog
{
    Q_OBJECT
public:
    CalibrationDlg(QWidget *parent);
    void initUI();

    void setCalibObj(Calibration_NinePoint* calib) { calib_nine_ = calib; }

    void processCalibBoard(cv::Mat &srcImg);

    

public slots:
    void on_load_image();
    void on_grab_one();
    void on_process();
    void on_calibration();
    void on_save_calibData();
    void on_test_data();
    void on_read_robData();

protected:
    void clearTable();


private:
    cv::Mat srcImage_;
    QGView* imgView_ = nullptr;
    int readCount = 0;

    Calibration_NinePoint* calib_nine_ = nullptr;
};

